﻿<%@ page 
language="java" 
import="java.util.*" 
import="com.csd.helper.IConstant"
import="com.csd.helper.Tool"
import="com.csd.helper.ProjectState"
import="com.csd.vo.UserVO"
import="com.csd.pojo.Project"
import="com.csd.pojo.Team"
import="com.csd.pojo.DocumentRecord"
pageEncoding="UTF-8"
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
HttpSession s = request.getSession();
UserVO uvo =  (UserVO)s.getAttribute(IConstant.userVO);
if(uvo==null || !uvo.getType().equals(IConstant.teamRole))
{
	response.sendRedirect(path+"/error.jsp?info=抱歉，请先登录!");
	return;
}
String user_name = uvo.getName();
if(user_name == null)
{
	user_name = "暂无名称";
}
Project curr_proj = (Project)request.getAttribute("project");
String pname = "";
String pstate = "";
if(curr_proj != null){
pname = curr_proj.getProjectname();
pstate = curr_proj.getState();
}
String stage = (String)request.getAttribute("stage");
if(stage == null || stage.length()==0)
{
	stage = request.getParameter("stage");
}
if(stage!=null && stage.equals("null"))
	stage = null;
String returnpage = (String)request.getAttribute("returnpage");
if(returnpage==null){
returnpage=new String("null");
}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎</title>
<link href="<%=path%>/student/css/student_right.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <div class="main">
        <h1>&nbsp;欢迎使用！</h1>
        <hr />
        <br />
        <h3 id="welcome">&nbsp;&nbsp;你好<span><%=user_name%></span>, 项目开发者！
        <br />
        <%if(curr_proj != null){ %>
                     你目前有一个项目<span style="color:blue">&nbsp;<%=pname %>&nbsp;</span>,正处于<span style="color:blue">&nbsp;<%=pstate %>&nbsp;</span>阶段。点击“我的项目信息”->“项目细节”以查看更多内容.
        </h3>
        <%}else { %>
                     你目前还没有申请项目，请在完善团队资料后进行申请。
        </h3>
        <%} %>
    </div>
</body>
</html>
